package Solutions

func countVowels(word string) int64 {
    var ans int64
    var mp =['z'+1]bool{}
    mp['a']=true
    mp['e']=true
    mp['i']=true
    mp['o']=true
    mp['u']=true
    var l=len(word)
    for i:=0;i<l;i++{
        if mp[word[i]]{
            ans+=int64((i+1)*(l-i))
        }
    }
    return ans
}